
use serde::{Serialize, Deserialize};
use sqlx::{Database};
#[derive(sqlx::FromRow,Debug,Serialize)]
pub struct GoodsModel{
    pub id:i32,
    pub name:String,
    pub price:f64,
    pub pic:Vec<String>,
    pub detail_pic:Vec<String>
}

#[derive(sqlx::FromRow,Debug,Deserialize,Serialize)]
pub struct LoginModel{
    pub id:i32,
    pub nick:String,
    pub logo:String,
    pub token:String,
    pub phone:i64
}

#[derive(sqlx::FromRow,Debug,Deserialize,Serialize)]
pub struct InfoModel{
    pub nick:String,
    pub logo:String,
    pub phone:i64
}


#[derive(Serialize, Deserialize)]
pub struct RegisterPost{
    pub phone:String,
    pub pwd:String,
    pub nick:String,
}

#[derive(Debug,Serialize, Deserialize)]
pub struct BaseBean {
    pub status:u16,
    pub msg:String,

}
#[derive(Debug,Serialize, Deserialize)]
pub struct BaseDataBean<T: Serialize> {
    pub status:u16,
    pub msg:String,
    pub data:T

}
#[derive(Debug,Serialize, Deserialize)]
pub struct SendGst {
    pub receive_id:usize,
    pub send_id:usize,
    pub index:usize,
    pub types:String,
    pub content:String

}




